﻿namespace Zhaoxi.App.Common
{
    /// <summary>
    /// 数据库连接配置文件对应实体
    /// </summary>
    public class CustomConnectionStrings
    {
        /// <summary>
        /// 主库链接
        /// </summary>
        public string? ConnectionString { get; set; }

        /// <summary>
        /// 从库配置
        /// </summary>
        public List<SlaveConnection>? SlaveConnectionConfigs { get; set; }
    }

    /// <summary>
    /// 从库配置
    /// </summary>
    public class SlaveConnection
    {
        public int HitRate { get; set; } 
        public string? ConnectionString { get; set; } 
    }
}